package com.our.sys.project1.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.springside.modules.orm.grid.ViewField;

import com.our.sys.orm.hibernate.AuditableEntity;

@Entity
@Table(name = "B_SupplierBlacklist")
public class SupplierBlacklist extends AuditableEntity implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 4415462514637166373L;
    @ViewField
    private Long supplierId;
    @ViewField(header = "供应商名", width = 200, align = "left")
    private String name;
    @ViewField(header = "不良事件描述", width = 300, align = "left")
    private String action;
    @ViewField(header = "地址", width = 200, align = "left")
    private String address;
    @ViewField(header = "曾用名", width = 200, align = "left")
    private String oldName;
    @ViewField(header = "备注", width = 300, align = "left")
    private String note;
    @ViewField(header = "国别", width = 200, align = "left")
    private String country;
    @ViewField(header = "拼音助记符", width = 100, align = "left")
    private String py;
    @ViewField(header = "五笔助记符", width = 100, align = "left")
    private String wb;

    @Id
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "Id_Generator")
    @TableGenerator(name = "Id_Generator", table = "ID_GENERATOR", pkColumnName = "GEN_NAME", valueColumnName = "GEN_VAL", pkColumnValue = "B_SupplierBlacklist")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getOldName() {
        return oldName;
    }

    public void setOldName(String oldName) {
        this.oldName = oldName;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getPy() {
        return py;
    }

    public void setPy(String py) {
        this.py = py;
    }

    public String getWb() {
        return wb;
    }

    public void setWb(String wb) {
        this.wb = wb;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

}
